import { Loading } from 'element-ui'
export default function getData (params) {
  return new Promise((resolve, reject) => {
    let loadingInstance = Loading.service({
      lock: true,
      text: 'Loading',
      spinner: 'el-icon-loading',
      background: 'rgba(0, 0, 0, 0.7)'
    })
    setTimeout(() => {
      loadingInstance.close()
      resolve('over')
    }, 1000)
  })
}
